window.Data = {
   goldNum:0,
   
   
   getGoldNum:function(){
    localStorage.getItem("goldNum") ?  this.goldNum = localStorage.getItem("goldNum")
    : (this.goldNum = 0,localStorage.setItem("goldNum",0)) ;
    return this.goldNum
   }
}